﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Soundelle.SignalGenerator
{
    public class VersionInfo
    {
        public enum VersionStringStyle
        {
            VersionLongStyle,
            VersionShortStyle,
            VersionTinyStyle
        }

        static public string GetVersionString(VersionStringStyle VersionStyle)
        {
            string value = "";

            switch (VersionStyle)
            {
                case VersionStringStyle.VersionLongStyle:
                    value += System.Windows.Forms.Application.ProductName;
                    value += " ver." + System.Windows.Forms.Application.ProductVersion;
                    value += " by " + System.Windows.Forms.Application.CompanyName;
                    break;

                case VersionStringStyle.VersionShortStyle:
                    value += System.Windows.Forms.Application.ProductName;
                    value += " ver." + System.Windows.Forms.Application.ProductVersion;
                    break;

                case VersionStringStyle.VersionTinyStyle:
                    value += "ver." + System.Windows.Forms.Application.ProductVersion;
                    break;

                default:
                    break;
            }

            return value;
        }
    }
}
